
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no, email=no">
    <meta content="fullscreen=yes,preventMove=no" name="ML-Config" />
    <meta http-equiv="content-language" content="zh-CN" />
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>首页</title>
    <script src="./js/common.js"></script>
    <script src="./js/jquery.min.js"></script>
    <link rel="stylesheet" href="./css/home.css?v=6">
    <link rel="stylesheet" href="./js/need/layer.css">
    <script src="./js/layer.js"></script>
    <script src="./js/fastclick.js"></script>
    <script src="./js/rt.0.5.1.min.js"></script>
    <script src="./js/js.js"></script>
</head>
<body>
<!--头部-->
<div>
    <div class="header" id="orderFirst">
        <p>今天已接订单</p>
        <h3>1</h3>
        <p>今天派送订单：1单</p>
    </div>
    <div class="header" id="ordertwo">

    </div>
</div>
<!--导航-->
<div class="nav">
    <i></i>
    <ul>
        <li class="active">订单列表</li>
        <li>资金管理</li>
    </ul>
</div>
<!--内容-->
<div>
    <div class="content" id="icon">
        <ul>
            <li><a href="/index/new-order"><img src="./images/a.png"><p>未接订单<div class="right">1</div></a></li>
            <li><a href="/index/received-order"><img src="./images/b.png"><p>已接订单</p><div class="right">1</div></a></li>
            <li><a href="/index/waitbeat"><img src="./images/c.png"/><p>待拍订单</p><div class="right">1</div></a></li>
            <li><a href="/index/amount"><img src="./images/d.png"/><p>待送订单</p><div class="right">1</div></a></li>
            <li><a href="/index/ordercomplete"><img src="./images/e.png"/><p>完成订单</p><div class="right">1</div></a></li>
            <li><a href="/index/nonservice"><img src="./images/f.png"/><p>未服务订单</p> <div class="right">1</div></a></li>
            <li><a href="/index/return-order?type=1"><img src="./images/g.png"/><p>退换订单</p><div class="right">1</div></a></li>
            <li><a href="/index/return-order?type=2"><img src="./images/h.png"/><p>取消订单</p><div class="right">1</div></a></li>
            <li><a href="/index/qcode"><img src="./images/rwm.png"><p>二维码</p></a></li>
        </ul>
    </div>
    <div class="content" id="orderthree">

    </div>
</div>
<!--退出-->
<!--		<a href="#" class="btn">退出</a>-->
</body>

<script>
    /*$(function () {
        FastClick.attach(document.body);
        //首页
        $.ajax({
            type: urlType,
            url: "/user-account/price-list",
            data: {
                m : 'home'
            },
            dataType: "json",
            success: function (res) {
                console.log(res);
                if(res.code==200){
                    var data = res.data;
                    var tx = $('#defaultMsg').html();
                    var html = rt.template(tx, data);
                    $('#orderFirst').html(html)
                }else{
                    layer.open({
                        content:res.message,
                        btn:'确定'
                    })
                }
            },
            error: function () {
            }
        });

        //资金管理
        $.ajax({
            type: urlType,
            url: "/user-bill/capital",
            data: {
                m : 'capital'
            },
            dataType: "json",
            success: function (res) {
                console.log(res);
                if(res.code==200){
                    var data = res.data;
                    var zj = $('#mouth').html();
                    var xs = $('#Withdrawals').html();
                    var htmlz = rt.template(zj, data);
                    var htmlx = rt.template(xs, data);
                    $('#orderthree').html(htmlz)
                    $('#ordertwo').html(htmlx)
                }else{
                    layer.open({
                        content:res.message,
                        btn:'确定'
                    })
                }
            },
            error: function () {
            }
        });

        //退出
        $(document).on('click','.btn',(function () {
            layer.open({
                content:'确认退出？',
                btn:['确定','取消'],
                yes: function(index){
                    //location.reload();
                    $.ajax({
                        type: urlType,
                        url: "/login/logout",
                        data: {

                        },
                        dataType: "json",
                        success: function (res) {
                            console.log(res);
                            if(res.code==200){
                                window.location.href="/index/login";
                            }else{
                                layer.open({
                                    content:res.message,
                                    btn:'确定'
                                })
                            }
                        },
                        error: function () {
                        }
                    });
                    layer.close(index);
                }
            });
        }))
        //状态
        $.ajax({
            type: urlType,
            url: "/user-order/order-num",
            data: {

            },
            dataType: "json",
            success: function (res) {
                // console.log(res);
                if(res.code==200){
                    var data = res.data;
                    var st = $('#hstate').html();
                    var htmlt = rt.template(st, data);
                    $('#icon').html(htmlt);
                }else{
                    layer.open({
                        content:res.message,
                        btn:'确定'
                    })
                }
            },
            error: function () {
            }
        });

    })*/

</script>
<script type="text/html" id="hstate">
    <ul>
        <li><a href="/index/new-order"><img src="./images/a.png"><p>未接订单<div class="right">1</div></a></li>
        <li><a href="/index/received-order"><img src="./images/b.png"><p>已接订单</p><div class="right">1</div></a></li>
        <li><a href="/index/waitbeat"><img src="./images/c.png"/><p>待拍订单</p><div class="right">1</div></a></li>
        <li><a href="/index/amount"><img src="./images/d.png"/><p>待送订单</p><div class="right">1</div></a></li>
        <li><a href="/index/ordercomplete"><img src="./images/e.png"/><p>完成订单</p><div class="right">1</div></a></li>
        <li><a href="/index/nonservice"><img src="./images/f.png"/><p>未服务订单</p> <div class="right">1</div></a></li>
        <li><a href="/index/return-order?type=1"><img src="./images/g.png"/><p>退换订单</p><div class="right">1</div></a></li>
        <li><a href="/index/return-order?type=2"><img src="./images/h.png"/><p>取消订单</p><div class="right">1</div></a></li>
        <li><a href="/index/qcode"><img src="./images/rwm.png"><p>二维码</p></a></li>
    </ul>
</script>

<script type="text/html" id="mouth">
    <ul class="content1">
        <li><a href="#">总销售额<p>￥100</p></a></li>
        <li><a href="#">本月销售额<p>￥100</p></a></li>
    </ul>
    <div class="wei"><a href="/index/missed"><img src="./images/m.png">未结金额<span><img src="./images/l.png"></span></a></div>
</script>
<script type="text/html" id="Withdrawals">
    <!--<% var picer=0  %>-->
    <!--        提现额度-->
    <!--<%picer= (parseInt((it.houston-it.alredy_embody-it.embody)/100)).toFixed(2)%>-->
    <h3>￥30</h3>
    <p class="p">(未开通提现功能)</p>
</script>
<script type="text/html" id="defaultMsg">
    <p>今天已接订单</p>
    <h3>1</h3>
    <p>今天派送订单：1单</p>
</script>
</html>



